import request from '@/utils/request'

export function findAlllesson() {
  return request({
    url: '/lesson',
    method: 'get'
  })
}

export function add(lesson) {
  return request({
    url: '/lesson',
    method: 'lesson',
    data: lesson
  })
}

export function update(lesson) {
  return request({
    url: '/lesson',
    method: 'put',
    data: lesson
  })
}

export function deleteById(id) {
  return request({
    url: '/lesson/' + id,
    method: 'delete'
  })
}

export function selectById(id) {
  return request({
    url: '/lesson/' + id,
    method: 'get'
  })
}
